<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="jquery,ui,easy,easyui,web">
<meta name="description"
	content="easyui help you build your web page easily!">
<title>用户登录</title>
<link rel="stylesheet" type="text/css"
	href="http://www.w3cschool.cc/try/jeasyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="http://www.w3cschool.cc/try/jeasyui/themes/icon.css">
<style type="text/css">
#ff label {
	display: block;
	width: 100px;
}
</style>
<script type="text/javascript"
	src="http://code.jquery.com/jquery-1.6.1.min.js"></script>
<script type="text/javascript"
	src="http://www.w3cschool.cc/try/jeasyui/jquery.easyui.min.js"></script>
	
<Script Language="JavaScript"> 
     
    function register() 
    { 
    	alert("你好啊");
       document.forms.f.action="${pageContext.request.contextPath }/user/g2register.action"; 
       document.forms.f.submit(); 
    } 
</Script>
</head>
<body>
	<div style="width: 230px; background: #fafafa; padding: 10px;">
		<div style="padding: 3px 2px; border-bottom: 1px solid #ccc">Form
			Validation</div>
		<form id="f" name="f" method="post"
			action="${pageContext.request.contextPath }/user/login.action">
			<div>
				<label for="name">账号:</label> <input class="easyui-validatebox"
					type="text" name="User_Count" value="${user.getUser_Count()}"
					required="true"></input>
			</div>
			<div>
				<label for="name">密码:</label> <input class="easyui-validatebox"
					type="password" name="User_password" required="true"></input>
			</div>
			<div>
				<input type="radio" name="User_Character" value="普通用户"
					checked="checked" />普通用户 <input type="radio" name="User_Character"
					value="管理员" />管理员
			</div>
			<br>
			<div>
			    <input type="submit"  value="登录"  /> 
			    <input type="button" value="注册" onclick="register();">
			</div>
		</form>
	</div>
</body>
</html>